package com.thb.base.memcached;

public class MKeyUtils {
	
	private static final int  ACADE_IN_TYPE = 1;
	
	private static final int  ACADE_OUT_TYPE = 2;
	
	private static String LABEL_KEY = "api:labels";
	
	private static String ACADE_IN_KEY = "api:acades";
	
	private static String DEPARTMENT_COMMUNITY_KEY = "api:acades:department";
	
	private static String VERSION_KEY = "version:list";
		
	
	public static String getLabelKey(){
		return String.format("%s", LABEL_KEY);
	}
	
	public static String getAcadeInKey(){
		return String.format("%s:%s", ACADE_IN_KEY,ACADE_IN_TYPE);
	}
	
	public static String getAcadeOutKey(){
		return String.format("%s:%s", ACADE_IN_KEY,ACADE_OUT_TYPE);
	}
	
	public static String getDepartmentKey(String cid){
		return String.format("%s:%s", DEPARTMENT_COMMUNITY_KEY,cid);
	}
	
	/*public static String getPosterPraiseKey(String posterId,String userId){
		return String.format("%s:%s:%s", POSTER_PRAISE_KEY,posterId,userId);
	}*/
	
	public static String getVersionKey(){
		return String.format("%s", VERSION_KEY);
	}

}
